package testspring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description 测试spring
 * @Author dangxianyue
 * @Date 2024/3/27 15:26
 */
public class TestSpring {
    public static void main(String[] args) {
        final AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(TestSpringAppConfig.class);
        System.out.println(applicationContext.getBean("AService"));
        System.out.println(applicationContext.getBean("BService"));
    }
}
